package dao;

import entity.IEntity;
import java.util.List;
import javax.persistence.EntityManager;
import vo.IValueObject;

/**
 *
 * @author Alexander
 */
public interface IDAO {

    public void persist(IEntity entity, EntityManager em);
    
    public IValueObject find (Object id, EntityManager em);
    
    public void update (IEntity entity, EntityManager em);
    
    public void delete (Object id, EntityManager em);
    
    public List<IValueObject> getList(EntityManager em);
    
}
